package com.timoon.sample.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.timoon.sample.dao.InfoSortDAO;
import com.timoon.sample.dao.model.InfoSort;
import com.timoon.sample.dao.model.InfoSortExample;
import com.timoon.webcomponent.utility.slide.Slide1Service;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */

@Service(value="com.timoon.sample.service.Slide1ServiceImpl")
public class Slide1ServiceImpl implements Slide1Service {

	@Resource
	private InfoSortDAO infoSortDAOImpl;
	
	@Override
	public List<InfoSort> getInfoSortsByType(final int type) {
		// TODO Auto-generated method stub
		
		return this.infoSortDAOImpl.selectByExample(new InfoSortExample(){{
			this.createCriteria().andTypeEqualTo(type);
		}});
	}

}
